package main

import (
	"github.com/gin-gonic/gin"
	_ "test.com/project-api/api"
	"test.com/project-api/config"
	"test.com/project-api/router"
	srv "test.com/project-common"
)

func main() {

	r := gin.Default() //获取gin默认服务

	//路由
	router.InitRouter(r)

	//把自己这个gin服务作为参数, 调用公共的Run方法,启动服务
	srv.Run(r, config.C().SC.Name, config.C().SC.Addr, nil)
}
